<include file="../Public/header" />
<style>
.treep1{display:;}
.treep2{display:none;}
.sub_bav td {
    border: 0px solid #D0D0D0 !important;
    border-collapse: collapse;
    padding: 2px;
}
table{ border:0px !important; padding:0px !important;}
td{ border:0px !important; padding:0px !important;}
p,div{ line-height:0px !important;}
</style>

<load href="__PUBLIC__/Js/tree.js" />
<div class="ncenter_box">
<div class="accounttitle"><h1>推荐关系图 </h1></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <form method='post' action="__URL__/TreeAjax/">
  <tr>
    <td height="30">&nbsp;&nbsp;会员编号：
    <input type="text" name="UserID" title="帐号查询">
    <input type="submit" name="Submit" value="查询" class="btn1"/>
    &nbsp;&nbsp;&nbsp;&nbsp;
    团队人数：<b>{$all_nn}</b> 人
    </td>
  </tr>
  </form>

  <tr>
    <td>{$myStr}</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="{$myTabN}">
  <tr>
    <td>
    <volist name="z_tree" id="z_tt">
    <div>{$z_tt[0]}</div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="{$z_tt[1]}" class="treep2">
      <tr>
        <td id="{$z_tt[1]}_tree">{$z_tt[2]}<img src="__PUBLIC__/Images/loading2.gif" align="absmiddle"></td>
      </tr>
    </table>
    </volist>
    </td>
  </tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30">&nbsp;&nbsp;
    <volist name="s9" id="svo">
    <strong><span class="STYLE3">{$s10[$key]}(￥{$s9[$key]})</span></strong>&nbsp;&nbsp;
    </volist></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30">说明：<img src="__PUBLIC__/Images/tree/center.gif" width="18" height="18" />区域代理<img src="__PUBLIC__/Images/tree/Official.gif" width="18" height="18" />已开通 <img src="__PUBLIC__/Images/tree/trial.gif" width="18" height="18" />未开通</td>
  </tr>
</table>
</div>
</body>
</html>
<script>
function openmm(oid,tid,mid,numm,ppath){
	var tobj = document.getElementById(oid);
	var mobj = document.getElementById(tid);
	var cmid = "o"+tid;
	var cobj = document.getElementById(cmid);
	var coimg = cobj.src;
	if(tobj.className=="treep2"){
		tobj.className="treep1";
		var opppid = oid+"_tree";
		ajaxChech(opppid,mid,numm,ppath)
	}else{
		tobj.className="treep2";
	}
	cobj.src = mobj.src;
	mobj.src = coimg;
	

}
function ajaxChech(vid,aid,nnn,pp){
	var xmlHttp;
	try{
		//FF Opear 8.0+ Safair
		xmlHttp=new XMLHttpRequest();
	}
	catch(e){
		try{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(e){
			alert("您的浏览器不支持AJAX");
			return false;    
		}
	}
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4){
			var valuet = xmlHttp.responseText;
			document.getElementById(vid).innerHTML=valuet;
		}
	}
	var url="__URL__/ajax_tree_m/";
	url+="/reid/"+aid+"/nn/"+nnn+"/pp/"+pp;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
</script>